﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Frame;

namespace Utility
{
    public partial class StartUpScreen : Form
    {
        public StartUpScreen()
        {
            InitializeComponent();
            //this.StartPosition = FormStartPosition.CenterScreen;
            this.ShowInTaskbar = false;
            this.TopMost = true;
            LargeLogo.Image = Image.FromFile(AppDomain.CurrentDomain.BaseDirectory + "LargeLogo.png");
            ScreenHelper.ShowScreen(this);
            
        }

        public void CloseOnThread()
        {
            if (this.InvokeRequired)
            {
                this.Invoke(new Action(Close));
            }
            else
            {
                Close();
            }
        }

        private void StartUpScreen_Load(object sender, EventArgs e)
        {
            
        }
    }
}
